package com.example.orderserver.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
@ApiModel(value="订单")
public class OrderInfo {
    @TableId
    @ApiModelProperty(value="主键")
    private String id;
    @TableField("sell_id")
    @ApiModelProperty(value="卖家id")
    private String sellId;
    @TableField("buy_id")
    @ApiModelProperty(value="买家id")
    private String buyId;
    @TableField("goods_id")
    @ApiModelProperty(value="商品id")
    private String goodsId;
    @TableField("price")
    @ApiModelProperty(value="金额")
    private Double price;
    @TableField("status")
    @ApiModelProperty(value="订单状态 1.未支付 2.支付 3.确认收货")
    private int status;
    @TableField("method")
    @ApiModelProperty(value="交易方式 1.自取 2.送货上门 3.约定地点交货")
    private int method;
    @TableField("remark")
    @ApiModelProperty(value="订单备注")
    private String remark;
    @TableField("create_time")
    @ApiModelProperty(value="创建时间")
    private Date createTime;
    @TableField("update_time")
    @ApiModelProperty(value="更新时间")
    private String updateTime;
    public OrderInfo(){
    }

}
